package service;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import dao.User2zcDao;
import dao.UserDao;

/**
 * 
 * @author hdq
 *
 */
@Service("UserService")
public class UserService {
	
	private static Logger logger = Logger.getLogger(UserService.class);
	
	@Autowired
	private UserDao userDao;
	
	@Autowired
	private User2zcDao user2zcDao;
	
	public String getOpenIdByUserMobileNum(String userMobileNum) {
		return userDao.getOpenIdByUserMobileNum(userMobileNum);
	}
	
	public String getZcOpenIdByUserId(String userId) {
		return user2zcDao.getOpenIdByUserId(userId);
	}
	
	
	public Integer getUserIdByOpenID(String openId) {
		return userDao.getUserIdByOpenId(openId);
	}
	
	
}